package com.aaa.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 员工表(Emp)表实体类
 *
 * @author makejava
 * @since 2022-12-07 09:51:55
 */
@SuppressWarnings("serial")
@Data
public class Emp extends Model<Emp>{
    //ID
    private Long id;
    //姓名
    private String name;
    //年龄
    private Integer age;
    //职位
    private String job;
    //薪资
    private BigDecimal salary;
    //入职时间
    private Date entrydate;
    //直属领导ID
    private Integer managerid;
    //部门ID
    private Long deptId;
    //照片
    private String imgurl;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

